package com.jiantong.user.service;

import com.jiantong.user.ext.LoginUser;
import com.jiantong.user.model.ButcherFactory;
import io.terminus.common.model.Paging;
import io.terminus.common.model.Response;

import java.util.List;
import java.util.Map;

/**
 * Created by mz03 on 2017/4/25.
 */
public interface ButcherFactoryReadService {

    /**
     * 根据省,市查询
     * @param loginUser 当前登陆人
     * @return List<ButcherFactory>
     */
    Response<List<ButcherFactory>> findByCityId(LoginUser loginUser);



    Response<ButcherFactory> findButcherFactoryById(Long id);

    Response<Paging<ButcherFactory>> findAllButcherFactory();

    Response<List<String>> findAllCity();

    Response<List<String>> findRegionByCity(String city);

    Response<List<ButcherFactory>> findByRegion(String region);

    Response<List<ButcherFactory>> findByArea(Map<String , Object> map);

    Response<List<ButcherFactory>> findByIds(List<Long> butcherFactoryIds);
}
